package net.opentsdb.utils;

/**
 * @author Hujf
 * @title: TsdStrUtil
 * @date 2021-09-09 15:34
 * @description: 字符串工具类
 */
public class TsdStrUtil {

    public static boolean isNullOrEmpty(String str) {
        return str == null || str.isEmpty();
    }

    public static String sanitize(String value) {
        if (value == null) {
            return null;
        }

        return value.trim();
    }
}
